import pymongo

hosts = "10.0.11.146"
ports = 27017
dbs = "yc_car_master"

def connMongo(collections):
    client = pymongo.MongoClient(host=hosts, port=ports)
    db = client[dbs]
    collection = db[collections]
    return collection
